Programming a Blank PCIe Host (Windows)#

  1. If you have not done so already, follow the steps on the Setup Guide for Windows page.

  2. Download and install Vivado Lab Edition here: https://www.xilinx.com/support/download.html.

  3. Download PCIe Host Bootloader.

  4. Download the most recent PCIe Host Firmware that is compatible with your hardware

  5. Open Vivado and click open Hardware manager on splash screen

  6. Clock on “Tools” and select “Generate Memory Configuration File…”

    ../../_images/vivado-generate-mem-config.PNG
  7. Enter the following values into the form and click OK. This will generate an .mcs file that can be flashed onto your PCIe host board.

    • Format: MCS

    • Memory part: mt25ql128-spi-x1_x2_x4

    • Interface: SPIx4

    • Load bitstream files: enabled

    • Select the two bitfiles (”*.bit”). Bootloader at address 0x0000000, normal image at address 0x0800000. Both with direction “up”.

    • Every other option disabled

    ../../_images/mcs-configuration.PNG

    Note

    To add the second, bit file, click the “plus” icon on the first row in the table under Load Bitstream files (red in image).

  8. After generating the mcs file, plug in a Xilinx Platform Cable II to a USB port on your computer. Then plug the other end into the JTAG connector (red box in figure) on the PCIe host board.

    ../../_images/nereid-jtag-programming.png

    Note

    If the host board is not already plugged into a PCIe slot, do so now and be sure to also be sure to plug in an ATX power connection (green box in figure).

  9. In the Hardware Manager, click Open Target and select “Auto Connect” to find the programmer and scan for the FPGA on the JTAG chain.

    ../../_images/auto-connect.PNG
  10. Once the FPGA is enumerated in the hardware manager, right click it and select “Add Configuration Memory Device…”

    ../../_images/add-config-memory-device.PNG
  11. Search for “mt25ql128-spi-x1_x2_x4” in the “Memory Device” field and add it. Add the path to the .mcs file generated previously in the “Configuration file” field. Click OK to flash the PCIe host board.

    ../../_images/program-with-mcs.PNG
  12. Power off the computer and then restart.

  13. Open the Device Manager from the Windows Search Bar and you should see a RIFFA in there.

  14. After this, you will be able to quickly upgrade your PCIe Host over PCIe by following the steps on the pcie_host_gateware_drivers page.